



print("============== 内网穿透服务器配置 ==============\n")
bindport = input("连接端口:")
token = input("连接密码:")
sport = input ("后台地址端口:")
suser = input("后台账号:")
spasswd = input("后台账号密码:")

txt = f'bindPort = {bindport}\n'
txt += f'auth.token = "{token}"\n'
txt += f'webServer.addr = "0.0.0.0"\n'
txt += f'webServer.port = {sport}\n'
txt += f'webServer.user = "{suser}"\n'
txt += f'webServer.password = "{spasswd}"\n'

file = open("frps.toml", "w")
file.write(txt)
file.close()

